﻿using Domain.Sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DTO.DTO.Sys.AdminUser;
using Common.Property;

namespace IServices.Sys
{
    public interface IAdminUserService
    {
        Task<AdminUser> GetByUserNameAsync(string username);
        Task<Result> Save(AdminUserDetailDTO dto, OperatorInfo op);
        Task<Result> SavePassword(AdminUserPasswordDTO dto, OperatorInfo op);
        Task<bool> Delete(string id, OperatorInfo op);
        Task<bool> DeleteBatch(List<string> ids, OperatorInfo op);
        Task<AdminUser> GetById(string id);
        Task<Tuple<IEnumerable<AdminUser>, int>> GetPageList(AdminUserQueryDTO dto);
    }
}
